<script>
	export let status;
	export let error;

	const dev = process.env.NODE_ENV === 'development';
</script>

<style>
</style>

<svelte:head>
	<title>{status}</title>
</svelte:head>

<div class="panel-header">
	<div class="header text-center">
	<h2 class="title">{status}</h2>
	{#if status==403}
		<p>
			<a class="btn btn-primary" href="/login">前往登录</a>
		</p>
	{/if}
	<p class="category">{error.message}</p>
	</div>
</div>
{#if dev && error.stack}
	<pre>{error.stack}</pre>
{/if}
